﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using HDTuyenChon.AppCode;

namespace HDTuyenChon
{
	public partial class Main : System.Web.UI.MasterPage
	{
		protected void Page_Load(object sender, EventArgs e)
		{
			//if (Session["TaiKhoan"] != null)
			//{
			//    TaiKhoan tk = (TaiKhoan)Session["TaiKhoan"];
			//    BL.TaiKhoanBL taiKhoan = new BL.TaiKhoanBL();
			//    int quyen = taiKhoan.getQuyenLogin(tk);
			//    if (quyen == 1)
			//    {
			//        hlUser.Text = "Admin";
			//        hlUser.NavigateUrl = "~/Admin/AddPhim.aspx";
			//    }
			//    else
			//    {
			//        hlUser.Text = tk.UserName;
			//        hlUser.NavigateUrl = "Default.aspx";
			//    }
			//}
			//else
			//{
			//    hlUser.Text = "";
			//    hlUser.NavigateUrl = "#";
			//}
		}

		protected void btnLogin_Click(object sender, EventArgs e)
		{
			
		}
	}
}